Crate leptos_dom
source ·Expand description
The DOM implementation for leptos
.
Re-exports§
pub use html::HtmlElement;
Modules§
- Types for all DOM events.
- A variety of DOM utility functions.
- Exports types for working with HTML elements.
- Utilities for simple isomorphic logging to the console or terminal.
- Exports types for working with MathML elements.
- Utilities for exporting nonces to be used for a Content Security Policy.
- Server-side HTML rendering utilities.
- Server-side HTML rendering utilities for in-order streaming and async rendering.
- Exports types for working with SVG elements.
Macros§
- Uses
println!()
-style formatting to log warnings to the console (in the browser) or viaeprintln!()
(if not in the browser), but only if it’s a debug build. - Uses
println!()
-style formatting to log errors to the console (in the browser) or viaeprintln!()
(if not in the browser). - Uses
println!()
-style formatting to log something to the console (in the browser) or viaprintln!()
(if not in the browser). - Uses
println!()
-style formatting to log warnings to the console (in the browser) or viaeprintln!()
(if not in the browser).
Structs§
- A user-defined
leptos
component. - Custom leptos component.
- Represents any
View
that can change over time. - The internal representation of the
DynChild
core-component. - A component for efficiently rendering an iterable.
- The internal representation of the
Each
core-component. - HTML element.
- A unique key for an error that occurs at a particular location in the user interface.
- A struct to hold all the possible errors that could be provided by child Views
- Represents a group of
views
. - Control and utility methods for hydration.
- A stable identifier within the server-rendering or hydration process.
- An owning iterator over all the errors contained in the
Errors
struct. - An iterator over all the errors contained in the
Errors
struct. - Contains a shared reference to a DOM node created while using the
view
macro to create your UI. - HTML text
- Wrapper for arbitrary data that can be passed through the view.
- The unit
()
leptos counterpart. - The internal representation of the
Unit
core-component.
Enums§
- Represents the different possible values an attribute node could have.
- Represents the different possible values a single class on an element could have, allowing you to do fine-grained updates to single items in
Element.classList
. - The core foundational leptos components.
- A statically typed event handler.
- Represents the different possible values an element property could have, allowing you to do fine-grained updates to single fields.
- todo docs
- A leptos view which can be mounted to the DOM.
Traits§
- Collects an iterator or collection into a
View
. - Trait for a directive handler function. This is used so it’s possible to use functions with one or two parameters as directive handlers.
- Type that can be used to handle DOM events
- Converts some type into an
Attribute
. - Converts some type into a
Class
. - Trait for converting any iterable into a
Fragment
. - Converts some type into a
Property
. - Converts some type into a
Style
. - Converts the value into a
View
.
Functions§
- Creates a shared reference to a DOM node created while using the
view
macro to create your UI. - Returns the
Document
. - Returns true if running on the browser (CSR).
- Returns true if
debug_assertions
are enabled. - Returns true if
debug_assertions
are disabled. - Returns true if running on the server (SSR).
- Runs the provided closure and mounts the result to the provided element.
- Runs the provided closure and mounts the result to the
<body>
. - Runs the provided closure and mounts the result to the provided element.
- Returns the
Window
.